#ifndef WORKTHREAD_H
#define WORKTHREAD_H

#include <QObject>

class workThread : public QObject {
  Q_OBJECT
public:
  explicit workThread(QObject *parent = nullptr);

public slots:
  void doWork(int parameter); // doWork 定义了线程要执行的操作

signals:
  void resultReady(const int result); // 线程完成工作时发送的信号
};

#endif // WORKTHREAD_H
